GameSystem

Undocumented in source.

Constructors

this
this(float targetFPS)
Undocumented in source.

Members

Functions

addScene
void addScene(AScene s)

Adding a scene will initialize them, while checking for assets referencing for auto loading them.

loadGame
void loadGame(string gameDll, string buildCommand)
Undocumented in source. Be warned that the author may not have intended to support it.
postUpdate
void postUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
quit
void quit()
Undocumented in source. Be warned that the author may not have intended to support it.
recompileGame
void recompileGame()
Undocumented in source. Be warned that the author may not have intended to support it.
recompileReloadExternalScene
void recompileReloadExternalScene()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render()
Undocumented in source. Be warned that the author may not have intended to support it.
scriptFatalError
void scriptFatalError(Throwable e, string file, size_t line, string func)
Undocumented in source. Be warned that the author may not have intended to support it.
startGame
void startGame()
Undocumented in source. Be warned that the author may not have intended to support it.
update
bool update(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

externalScene
AScene externalScene;
Undocumented in source.
hotload
HotloadableDLL hotload;
Undocumented in source.
watcher
CompileWatcher watcher;
buildCommand
string buildCommand;
Undocumented in source.

Variables

dispatcher
EventDispatcher dispatcher;

Holds the member that generates the events as inputs

fps
float fps;
Undocumented in source.
fpsAccumulator
float fpsAccumulator;
Undocumented in source.
frames
size_t frames;
Undocumented in source.
hasFinished
bool hasFinished;
Undocumented in source.
inputListener
HipInputListener inputListener;
Undocumented in source.
projectDir
string projectDir;
Undocumented in source.
scenes
AScene[] scenes;
Undocumented in source.
scriptInputListener
HipInputListener scriptInputListener;
Undocumented in source.
shouldResetDelta
bool shouldResetDelta;

Resets delta time after a reload for not jumping frames.

targetFPS
float targetFPS;
Undocumented in source.

Meta